package com.explorati.design_pattern.behavior.command;

/**
 * 具体命令角色：该角色定义一个接收者的行为之间的弱耦合，实现命令方法，并调用接受者的相应操作
 * 
 * @author explorati
 *
 */
public class OpenCourseVideoCommand implements Command {

	private CourseVideo courseVideo;

	public OpenCourseVideoCommand(CourseVideo courseVideo) {
		this.courseVideo = courseVideo;
	}

	@Override
	public void execute() {
		courseVideo.open();
	}

}
